package JavaSE;

import java.util.Scanner;

public class runYear {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        if (scanner.hasNextInt()) {
            int year = scanner.nextInt();
            if (year >= 1900 && year <= 2200) {
                boolean isLeap = (year % 4 == 0 && year % 100 != 0) || (year % 400 == 0);
                System.out.println(year + " is " + (isLeap ? "runnian" : "pingnian"));
            } else {
                System.out.println("error");
            }
        } else {
            System.out.println("error");
        }
    }
}
